package com.cyrusInnovation.test.comparator;

import java.util.Comparator;

import com.cyrusInnovation.test.record.PersonRecord;

/**
 * Sorted by Date of Birth ascending
 * @author Al
 *
 */
public class DateAscending implements Comparator<PersonRecord> {

	public int compare(PersonRecord record1, PersonRecord record2) {
		return record1.getDateOfBirth().compareTo(record2.getDateOfBirth());
	}
}
